package org.shopen.puremvc.controller.notehandlers
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.puremvc.as3.utilities.statemachine.StateMachine;
	import org.shopen.puremvc.ApplicationConstants;

	public class HandleCancelCreatingRequestCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			try
			{
				sendNotification(StateMachine.ACTION, null, ApplicationConstants.ACTION_CANCEL);
				sendNotification(ApplicationConstants.HIDE_CREATING_WINDOW);
			}
			catch(error : Error)
			{
				sendNotification(ApplicationConstants.GENERAL_ERROR, error);
			}
		}
	}
}